import Axios from "./axios";

const instance = Axios();

export default {
  get(url: string, params: any, headers: any) {
    return instance.get(url, { params, headers });
  },
  post(url: string, params: any, headers: any) {
    return instance.post(url, params, { headers });
  },
  put(url: string, params: any, headers: any) {
    return instance.put(url, params, { headers });
  },
  delete(url: string, params: any, headers: any) {
    return instance.delete(url, { params, headers });
  },
};
